package com.jizhang.service;

import com.jizhang.base.model.BaseModel;
import com.jizhang.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 郭博民
 * @since 2022-07-14
 */
@Service
public interface UserService extends IService<User> {
    //  根据用户账号,查询信息
    BaseModel findUser(String username, BaseModel baseModel) throws Exception;
    //添加用户
    BaseModel addUser(User user, BaseModel baseModel) throws Exception;
    //更新信息
    BaseModel updateUser(User user, BaseModel baseModel) throws Exception;
    //  用户登录
    BaseModel loginUser(User user, BaseModel baseModel) throws Exception;

}
